package com.yangrd.airship.upms.domain;

import com.github.wenhao.jpa.Specifications;
import org.apache.logging.log4j.util.Strings;
import org.springframework.data.jpa.domain.Specification;

public interface RoleSpec {

    static Specification<Role> toSpec(String name){
        return Specifications.<Role>and().eq(Strings.isNotBlank(name),"name",name).build();
    }
}
